package threadPool;

import org.jetbrains.annotations.NotNull;

import java.util.concurrent.Executor;

/**
 * @author: 李德才
 * @description:
 * @create: 2020-12-19 18:15
 **/

/**
 * 自定义执行器
 */
public class T01_MyExecutor implements Executor {

    public static void main(String[] args) {
        new T01_MyExecutor().execute(() -> {
            System.err.println("执行！");
        });
    }

    @Override
    public void execute(@NotNull Runnable command) {
        command.run();
    }
}
